//---------------------------------------------------------------------------

#ifndef t_confirmformH
#define t_confirmformH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Graphics.hpp>
//---------------------------------------------------------------------------
class HBatchIcon;

class TConfirmForm : public TForm
{
__published:	// IDE-managed Components
   TLabel *Label1;
   TLabel *Label2;
   TImage *Image1;
   TLabel *Label3;
   TLabel *LabelBatchDate;
   TLabel *LabelEndBatchDate;
   TEdit *EditPassword;
   TButton *ButtonOk;
   TButton *ButtonCancel;
   TEdit *EditId;
   TEdit *EditBatchDate;
   TEdit *EditEndBatchDate;
   TEdit *EditNextBatchDate;
   TLabel *LabelNextBatchDate;
   void __fastcall ButtonOkClick(TObject *Sender);
   void __fastcall ButtonCancelClick(TObject *Sender);
   void __fastcall FormShow(TObject *Sender);
private:	// User declarations
   bool OkFlag;
   bool __fastcall DoConfirm(HBatchIcon *Batch, const UTF8String &Title,
      const UTF8String &Auth);
public:		// User declarations
   __fastcall TConfirmForm(TComponent* Owner);
   bool __fastcall Confirm(HBatchIcon *Batch,
      const UTF8String &Title, const UTF8String &Auth);
   bool __fastcall ConfirmRestartJob(HBatchIcon *Batch,
      UTF8String &BatchDate, UTF8String &NextBatchDate,
      const UTF8String &Title, const UTF8String &Auth);
   bool __fastcall ConfirmStartBatch(HBatchIcon *Batch,
      const UTF8String &BatchDate,
      const UTF8String &Title, const UTF8String &Auth);
   bool __fastcall ConfirmStartBatch(HBatchIcon *Batch,
      UTF8String &BatchDate, UTF8String &NextBatchDate, UTF8String &EndBatchDate,
      const UTF8String &Title, const UTF8String &Auth);
};
//---------------------------------------------------------------------------
extern PACKAGE TConfirmForm *ConfirmForm;
//---------------------------------------------------------------------------
#endif
